]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: Also respect --force-animations flag in remote sessions
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 11 Mar 2026 21:37:20 +0000 (22:37 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Mar 2026 17:46:30 +0000 (18:46 +0100)
When commit 33d3a6564 added support for the --force-animations flag,
it explicitly excluded remote sessions.

There has been some interest in enabling the flag for remote sessions
as well recently, and as nobody seems to remember why they were
excluded, do just that.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9099
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4118>
(cherry picked from commit 39d622f3a26a87ba3f087b47d501fdb7e1eadd24)

js/ui/main.js

index 4a011f262b529ed283564d7dc6d7876c5d5ca168..4be8cea6029a417d8d09506dc0b5aa80d1f01361 100644 (file)
@@ -1063,12 +1063,12 @@ class AnimationsSettings {
     }
 
     _shouldEnableAnimations() {
-        if (this._handles.size > 0)
-            return false;
-
         if (global.force_animations)
             return true;
 
+        if (this._handles.size > 0)
+            return false;
+
         const backend = global.backend;
         if (!backend.is_rendering_hardware_accelerated())
             return false;